package com.runing.controller;


import com.runing.config.ResponseWrapper;
import com.runing.service.impl.RWeekServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lel
 * @since 2021-03-11
 */
@RestController
@RequestMapping("/rWeek")
@Api(tags = "星期")
public class RWeekController {

    @Autowired
    RWeekServiceImpl rWeekService;

    @ApiOperation("查找当前学期和当前周")
    @GetMapping("/NowSemesterAndWeek")
    public ResponseWrapper nowSemesterAndWeek(){
        ResponseWrapper wrapper = rWeekService.nowSemesterAndWeek();
        return wrapper;
    }

}

